package com.zjitc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.View;
import org.springframework.web.servlet.view.InternalResourceView;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/19 16:08
 * @description:
 */
@Controller
public class TakeController {

  @RequestMapping("/take")
  public ModelAndView take(){
    ModelAndView modelAndView = new ModelAndView();
    modelAndView.setView(new InternalResourceView("/WEB-INF/take.jsp"));
    modelAndView.addObject("age",10);
    modelAndView.addObject("name","fafafsa");
    return modelAndView;
  }


}
